package com.woniu.customer.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName ecp_clients_transport_upgrades
 */
@TableName(value ="ecp_clients_transport_upgrades")
@Data
public class TransportUpgrades implements Serializable {
    /**
     * 运输升级编号
     */
    @TableId(type = IdType.AUTO)
    private Long transportId;

    /**
     * 填写人ID
     */
    private Long writterId;

    /**
     * 填写人名称
     */
    private String writterName;

    /**
     * 申请日期
     */
    private Date applicationDate;

    /**
     * 销售员ID
     */
    private Long salesmanId;

    /**
     * 销售员名称
     */
    private String salesmanName;

    /**
     * 销售员所属地区/办事处
     */
    private String salesmanAddress;

    /**
     * 商务地区/办事处
     */
    private String businessAddress;

    /**
     * 公司商务
     */
    private String companyBusiness;

    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 收货地址
     */
    private String deliveryAddress;

    /**
     * 运输方式
     */
    private Integer transportType;

    /**
     * 申请修改的运输方式
     */
    private Integer edittransportType;

    /**
     * 特殊运输要求
     */
    private String transportDemand;

    /**
     * 申请理由
     */
    private String reasonApplication;

    /**
     * 附件
     */
    private String attachments;

    /**
     * 升级前运输方式
     */
    private Integer beforetransportType;

    /**
     * 升级后运输方式
     */
    private Integer aftertransportType;

    /**
     * 预计升级后运费差额
     */
    private BigDecimal freightDifference;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TransportUpgrades other = (TransportUpgrades) that;
        return (this.getTransportId() == null ? other.getTransportId() == null : this.getTransportId().equals(other.getTransportId()))
            && (this.getWritterId() == null ? other.getWritterId() == null : this.getWritterId().equals(other.getWritterId()))
            && (this.getWritterName() == null ? other.getWritterName() == null : this.getWritterName().equals(other.getWritterName()))
            && (this.getApplicationDate() == null ? other.getApplicationDate() == null : this.getApplicationDate().equals(other.getApplicationDate()))
            && (this.getSalesmanId() == null ? other.getSalesmanId() == null : this.getSalesmanId().equals(other.getSalesmanId()))
            && (this.getSalesmanName() == null ? other.getSalesmanName() == null : this.getSalesmanName().equals(other.getSalesmanName()))
            && (this.getSalesmanAddress() == null ? other.getSalesmanAddress() == null : this.getSalesmanAddress().equals(other.getSalesmanAddress()))
            && (this.getBusinessAddress() == null ? other.getBusinessAddress() == null : this.getBusinessAddress().equals(other.getBusinessAddress()))
            && (this.getCompanyBusiness() == null ? other.getCompanyBusiness() == null : this.getCompanyBusiness().equals(other.getCompanyBusiness()))
            && (this.getCustomerName() == null ? other.getCustomerName() == null : this.getCustomerName().equals(other.getCustomerName()))
            && (this.getCustomerId() == null ? other.getCustomerId() == null : this.getCustomerId().equals(other.getCustomerId()))
            && (this.getDeliveryAddress() == null ? other.getDeliveryAddress() == null : this.getDeliveryAddress().equals(other.getDeliveryAddress()))
            && (this.getTransportType() == null ? other.getTransportType() == null : this.getTransportType().equals(other.getTransportType()))
            && (this.getEdittransportType() == null ? other.getEdittransportType() == null : this.getEdittransportType().equals(other.getEdittransportType()))
            && (this.getTransportDemand() == null ? other.getTransportDemand() == null : this.getTransportDemand().equals(other.getTransportDemand()))
            && (this.getReasonApplication() == null ? other.getReasonApplication() == null : this.getReasonApplication().equals(other.getReasonApplication()))
            && (this.getAttachments() == null ? other.getAttachments() == null : this.getAttachments().equals(other.getAttachments()))
            && (this.getBeforetransportType() == null ? other.getBeforetransportType() == null : this.getBeforetransportType().equals(other.getBeforetransportType()))
            && (this.getAftertransportType() == null ? other.getAftertransportType() == null : this.getAftertransportType().equals(other.getAftertransportType()))
            && (this.getFreightDifference() == null ? other.getFreightDifference() == null : this.getFreightDifference().equals(other.getFreightDifference()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTransportId() == null) ? 0 : getTransportId().hashCode());
        result = prime * result + ((getWritterId() == null) ? 0 : getWritterId().hashCode());
        result = prime * result + ((getWritterName() == null) ? 0 : getWritterName().hashCode());
        result = prime * result + ((getApplicationDate() == null) ? 0 : getApplicationDate().hashCode());
        result = prime * result + ((getSalesmanId() == null) ? 0 : getSalesmanId().hashCode());
        result = prime * result + ((getSalesmanName() == null) ? 0 : getSalesmanName().hashCode());
        result = prime * result + ((getSalesmanAddress() == null) ? 0 : getSalesmanAddress().hashCode());
        result = prime * result + ((getBusinessAddress() == null) ? 0 : getBusinessAddress().hashCode());
        result = prime * result + ((getCompanyBusiness() == null) ? 0 : getCompanyBusiness().hashCode());
        result = prime * result + ((getCustomerName() == null) ? 0 : getCustomerName().hashCode());
        result = prime * result + ((getCustomerId() == null) ? 0 : getCustomerId().hashCode());
        result = prime * result + ((getDeliveryAddress() == null) ? 0 : getDeliveryAddress().hashCode());
        result = prime * result + ((getTransportType() == null) ? 0 : getTransportType().hashCode());
        result = prime * result + ((getEdittransportType() == null) ? 0 : getEdittransportType().hashCode());
        result = prime * result + ((getTransportDemand() == null) ? 0 : getTransportDemand().hashCode());
        result = prime * result + ((getReasonApplication() == null) ? 0 : getReasonApplication().hashCode());
        result = prime * result + ((getAttachments() == null) ? 0 : getAttachments().hashCode());
        result = prime * result + ((getBeforetransportType() == null) ? 0 : getBeforetransportType().hashCode());
        result = prime * result + ((getAftertransportType() == null) ? 0 : getAftertransportType().hashCode());
        result = prime * result + ((getFreightDifference() == null) ? 0 : getFreightDifference().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", transportId=").append(transportId);
        sb.append(", writterId=").append(writterId);
        sb.append(", writterName=").append(writterName);
        sb.append(", applicationDate=").append(applicationDate);
        sb.append(", salesmanId=").append(salesmanId);
        sb.append(", salesmanName=").append(salesmanName);
        sb.append(", salesmanAddress=").append(salesmanAddress);
        sb.append(", businessAddress=").append(businessAddress);
        sb.append(", companyBusiness=").append(companyBusiness);
        sb.append(", customerName=").append(customerName);
        sb.append(", customerId=").append(customerId);
        sb.append(", deliveryAddress=").append(deliveryAddress);
        sb.append(", transportType=").append(transportType);
        sb.append(", edittransportType=").append(edittransportType);
        sb.append(", transportDemand=").append(transportDemand);
        sb.append(", reasonApplication=").append(reasonApplication);
        sb.append(", attachments=").append(attachments);
        sb.append(", beforetransportType=").append(beforetransportType);
        sb.append(", aftertransportType=").append(aftertransportType);
        sb.append(", freightDifference=").append(freightDifference);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}